package cn.ljy.uem.dao;

import cn.ljy.authority.dao.BaseMapper;
import cn.ljy.uem.model.SchoolTerm;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 学期映射器
 *
 * @author 凡渊
 * @date 2022/07/18 10:43:38
 */
@Mapper
public interface SchoolTermMapper extends BaseMapper<SchoolTerm> {

    @Select("select count(1) from school_term where name = #{name}")
    int isExistByName(String  name);
}
